package com.tencent.user.mapper;

import com.tencent.user.domain.User;
import com.tencent.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Rixyo
 * @since 2022-06-02
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 用户注册时 校验手机号是否已经注册过
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    /**
     * 用户注册时 校验邮箱是否已经注册过
     * @param email
     * @return
     */
    User loadByEmail(String email);
}
